﻿using System;
using System.Globalization;

namespace Transfer
{
    class Program
    {
        public string _Name;
        public int _Age;
        public int _Id;
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                _Name = value;
            }
        }

        public int Age
        {
            get
            {
                return _Age;
            }
            set
            {
                _Age = value;
            }
        }
        public int Id
        {
            get
            {
                return _Id;
            }
            set
            {
                _Id = value;
            }
        }
        public Program (string name,int age,int id)
        {
            Name = name;
            Age = age;
            Id = id;
        }
        public int  PrintProgramInfo()
        {
            Console.WriteLine("这个名字：{0}，这个年龄：{1}，这个ID：{2}",this.Name ,this.Age,this.Id  );
            return 0;
            
        }

        public Program()
        {
        }

        public string Sum(string a, string b)
        {
            return a + b;
        }
        public int Sum(int a, int b)
        {
            return a + b;
        }
        public double Sum(double a, double b)
        {
            return a + b;
        }
        public int Sum(int a)
        {
            int sum = 0;
            for (int i = 1; i < a; i++)
            {
                sum += i;
            }
            return sum;
        }
    }
}
